package day10_io_code.com.itheima.d5_dataOutputStream;

import java.io.DataOutputStream;
import java.io.FileOutputStream;

public class Demo1_DataOutPutStream {
    public static void main(String[] args) {
        try(
                DataOutputStream dos = new DataOutputStream(new FileOutputStream(""));
                ){
            dos.writeByte(10);
            dos.writeBoolean(true);
            dos.writeInt(1000);
            dos.writeChar('a');
            dos.writeUTF("hello,world");
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
